View Issue Details

IDProjectCategoryView StatusLast Update
0000660T99X171.00 SKB EagleSW Issuepublic2019-05-08 10:04
Reporter(ALTech) Jewoo Lee Assigned To(ALTech) Jewoo Lee Due Date2019-04-25 19:36
PriorityhighSeveritys2-severeReproducibilityalways
Status closedResolutionfixed 
Summary0000660: Play Game app is closed when launching the app in TV앱(TV App) screen
Description[Observed Symptom]
Play Game app is closed when launching the app in TV앱(TV App) screen.
q.v. Normal Operation Case : Play Store > My App > Search Play Game > Open Play Game

[Expected Result]
There should be no problem using Play Game.

[Device Info.]
SW : 15.502.13 and previous versions
Steps To Reproduce1) 홈(Home) > TV앱(TV App)
2) Launch TV앱
TagsBFS-61
Attach Tags

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

(SW) Jim Chen

2019-04-25 15:19

developer   ~0002199

This happen only after PlayGame updated.

04-25 15:42:25.842 E/AndroidRuntime( 9794): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.play.games/com.google.android.apps.play.games.features.signin.SignInActivity}: java.lang.IllegalArgumentException: No injector factory bound for Class<com.google.android.apps.play.games.features.signin.SignInActivity>

(SW) Jason Ling

2019-04-26 11:25

developer   ~0002218

Hi Jewoo Lee,

The original PlayGame Entry is
pkg=com.google.android.play.games cmp=com.google.android.play.games/com.google.android.gms.games.ui.destination.main.MainActivity

After user login PlayStore, PlayGame will update automatically , the entry become to
pkg=com.google.android.play.games cmp=com.google.android.play.games/com.google.android.apps.play.games.app.atv.features.home.HomeActivity

Digcap should not hard code the shortcut entry, because apps has the possibility to change their entry at each release.

Please refer
https://developer.android.com/reference/android/content/pm/PackageManager.html#getLeanbackLaunchIntentForPackage

(ALTech) Jewoo Lee

2019-04-26 13:03

developer   ~0002219

Hi Jason,
Could you check following extra opinion from Digcap?
If you still need to inform Digcap your comments in spite of their opinion , please let me know.
----------------------------------------------------
StartActivity intent using PackageManager api following sequence when lanching the app in TV app.

PackageManager.getLaunchIntentForPackage(packageName);
PackageManager.getLeanbackLaunchIntentForPackage(packageName);

If launching the app with intent by 1st one, crash occurs.
With 2nd one, the app works normally.
-----------------------------------------------------

(SW) Jason Ling

2019-04-26 13:49

developer   ~0002221

Hi Jewoo,

Please use the 2nd API, this API is for TV application, the 1st API is for mobile app.
Our application engineer suggest that Digcap can use the following method.

Use 2nd API first, if the return value of 2nd API is null, use the 1st API.

(ALTech) Jewoo Lee

2019-04-26 14:41

developer   ~0002224

Hi Jason,
Following is the details further confirmed from Digicap.
----------------------------------------
There is no hard code.
It is getting the activity intent against CATEGORY_LAUNCHER of the App through PackageManager, and getting it to execute.
First, query intent by getLauncherIntentForPackage
https://developer.android.com/reference/android/content/pm/PackageManager.ht
If the result is null, get intent by calling getLeanbackLaunchIntentForPackage.
https://developer.android.com/reference/android/content/pm/PackageManager.ht
----------------------------------------
Digicap think this issue is caused by Play Games app, because the same issue occurs on other model of STB.
Please check this issue with Google.

(SW) Jason Ling

2019-04-26 16:34

developer   ~0002231

Hi Jewoo,

There are some logic errors.
According our test, the return value of getLauncherIntentForPackage is not null, but Play Game can not be open correctly.

Our engineer suggest Digcap that query getLeanbackLaunchIntentForPackage first, because our device is TV device.
If the return value is null, query getLauncherIntentForPackage.

In addition, instead of using category.LAUNCHER, please use category.LEANBACK_LAUNCHER. (for TV device)

We have test above algorithm, the "updated" Play Game can be open correctly.
You can use "TVSettings > Apps > See all apps > Play Games > Open" to open "updated" Play Game correctly, so I think there is no google issue.

(ALTech) Jewoo Lee

2019-04-29 10:56

developer   ~0002240

Hi Jason,
Thanks for your opinion.
Due to following issues, we need to check 2 ways to solve this problem at the same time.
 - After updating Play Game app, this problem occurs.
 - Previous models of SKB also have this problem.
Solution 1) Fix the problem on Google app. Please ask google to fix it and let us know the estimated schedule.
Solution 2) Fix the problem on STBs. I will discuss about it with SKB and Digicap once again.

(SW) Jason Ling

2019-04-29 11:59

developer   ~0002243

Last edited: 2019-04-29 12:00

Hi Jewoo,

Please focus on solution (2). I don't think Google will fix Play Game.
Because we have verified this issue on Google Standard Launcher, Both "original" Play Game and "updated" Play Game can be opened correctly.

We have also checked source code of TvSettings, it query getLeanbackLaunchIntentForPackage first, not getLaunchIntentForPackage.

Intent appLaunchIntent =
                mPackageManager.getLeanbackLaunchIntentForPackage(mEntry.info.packageName);
if (appLaunchIntent == null) {
            appLaunchIntent = mPackageManager.getLaunchIntentForPackage(mEntry.info.packageName);
}

Because BFX-AT100 is TV devices, please query getLeanbackLaunchIntentForPackage first.

(ALTech) Jewoo Lee

2019-04-29 15:36

developer   ~0002267

Hi Jason,
I have discussed with Digicap again.
But Digicap asked us to get the plan from Google about this change, because they seem have big concern for many models to modify.
So they still want to confirm Google's plan first.
Could you help to check this request with Google first?
Thanks.

(SW) Jason Ling

2019-04-29 16:37

developer   ~0002278

Hi Jewoo,

According to past experience, Google will not fix this issue, because it works correctly on Standard Android TV.

Even when Google fix crash issue. I think there are some risks in the launcher.
If one application contains 2 entries, it may has 2 UI styles/flows, one for mobile, the other for TV.
If Digicap query the getLaunchIntentForPackage in TV devices first and the return value is not null, Play Game will be executed with Mobile version entry and user will see the Mobile UI on TV.

(ALTech) Jewoo Lee

2019-05-08 10:04

developer   ~0002427

Digicap has solved this issue on V15.502.16.

Issue History

Date Modified Username Field Change
2019-04-24 18:41 (ALTech) Jewoo Lee New Issue
2019-04-24 18:41 (ALTech) Jewoo Lee Status new => assigned
2019-04-24 18:41 (ALTech) Jewoo Lee Assigned To => (SW) Jacky Chiang
2019-04-24 18:41 (ALTech) Jewoo Lee Tag Attached: BFS-61
2019-04-25 14:16 (SW) Kerwin Chen Assigned To (SW) Jacky Chiang => (SW) Jason Ling
2019-04-25 15:19 (SW) Jim Chen Note Added: 0002199
2019-04-26 11:25 (SW) Jason Ling Note Added: 0002218
2019-04-26 11:25 (SW) Jason Ling Assigned To (SW) Jason Ling => (ALTech) Jewoo Lee
2019-04-26 12:54 (ALTech) Jewoo Lee Assigned To (ALTech) Jewoo Lee =>
2019-04-26 12:55 (ALTech) Jewoo Lee Assigned To => (SW) Jason Ling
2019-04-26 13:03 (ALTech) Jewoo Lee Note Added: 0002219
2019-04-26 13:49 (SW) Jason Ling Note Added: 0002221
2019-04-26 13:49 (SW) Jason Ling Assigned To (SW) Jason Ling => (ALTech) Jewoo Lee
2019-04-26 14:41 (ALTech) Jewoo Lee Note Added: 0002224
2019-04-26 14:41 (ALTech) Jewoo Lee Assigned To (ALTech) Jewoo Lee => (SW) Jason Ling
2019-04-26 16:34 (SW) Jason Ling Note Added: 0002231
2019-04-26 16:34 (SW) Jason Ling Assigned To (SW) Jason Ling => (ALTech) Jewoo Lee
2019-04-29 10:56 (ALTech) Jewoo Lee Note Added: 0002240
2019-04-29 10:56 (ALTech) Jewoo Lee Assigned To (ALTech) Jewoo Lee => (SW) Jason Ling
2019-04-29 11:59 (SW) Jason Ling Note Added: 0002243
2019-04-29 11:59 (SW) Jason Ling Assigned To (SW) Jason Ling => (ALTech) Jewoo Lee
2019-04-29 12:00 (SW) Jason Ling Note Edited: 0002243
2019-04-29 15:36 (ALTech) Jewoo Lee Note Added: 0002267
2019-04-29 15:36 (ALTech) Jewoo Lee Assigned To (ALTech) Jewoo Lee => (SW) Jason Ling
2019-04-29 16:37 (SW) Jason Ling Note Added: 0002278
2019-04-29 16:38 (SW) Jason Ling Assigned To (SW) Jason Ling => (ALTech) Jewoo Lee
2019-05-08 10:04 (ALTech) Jewoo Lee Status assigned => closed
2019-05-08 10:04 (ALTech) Jewoo Lee Resolution open => fixed
2019-05-08 10:04 (ALTech) Jewoo Lee Note Added: 0002427